var app = getApp()
var serverUrl=app.globalData.url;
var userinfo=app.globalData.userinfo;

Page({
  data: {
    editUrl: "",
  },
  onReady(){
  },
  onLoad(query) { 
    var app = getApp();
    var serverUrl=app.globalData.url;
    var id = query.id;
    console.info(serverUrl+id)
    var that=this;
      dd.getStorage({
            key: 'userinfo',
            success: function(res) {
            //   res.data.userid='144069533138858074'
              var userid='144069533138858074'
              that.setData({    
                editUrl:serverUrl+"/api/hr/kehuinfo/edit/"+id+"?uid="+userid
              })
              console.info("===================="+res)
              
            },
            fail: function(res){
              dd.alert({content: res.errorMessage});
            }
      });
   }
});
